package com.ruoyi.teacher.mapper;

import java.util.Date;
import java.util.List;
import com.ruoyi.teacher.domain.TNewspaper;
import com.ruoyi.teacher.domain.TTeacher;
import org.apache.ibatis.annotations.Param;

/**
 * 老师日报Mapper接口
 * 
 * @author ruoyi
 * @date 2022-12-24
 */
public interface TNewspaperMapper 
{
    /**
     * 查询老师日报
     * 
     * @param id 老师日报主键
     * @return 老师日报
     */
    public TNewspaper selectTNewspaperById(Long id);

    /**
     * 查询老师日报列表
     * 
     * @param tNewspaper 老师日报
     * @return 老师日报集合
     */
    public List<TNewspaper> selectTNewspaperList(TNewspaper tNewspaper);

    /**
     * 新增老师日报
     * 
     * @param tNewspaper 老师日报
     * @return 结果
     */
    public int insertTNewspaper(TNewspaper tNewspaper);

    /**
     * 修改老师日报
     * 
     * @param tNewspaper 老师日报
     * @return 结果
     */
    public int updateTNewspaper(TNewspaper tNewspaper);

    /**
     * 删除老师日报
     * 
     * @param id 老师日报主键
     * @return 结果
     */
    public int deleteTNewspaperById(Long id);

    /**
     * 批量删除老师日报
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteTNewspaperByIds(Long[] ids);

    List<TTeacher> selectTNewspaperByName(List<String> teacherNames);

    List<Long> selectTeacherId(String paperTime);

    Boolean selectTodayNews(@Param("userId") Long userId, @Param("paperTime") Date paperTime);
}
